<template>
	<public-view navType="other" navTitle="详情">
		<view class="content">
			<image class="goods-image" :src="item.images[0]" mode=""></image>
			<view class="info-box">
				<view class="goods-info-box">
					<view class="name-money-box w-100 flex a-i-c j-c-b">
						<view class="name f-s-34 color-333">
							{{item.title||""}}
						</view>
						<view class="money f-s-34">
							<text class="color-999 f-s-26">￥</text>{{item.first_price||0}}-{{item.last_price}}
						</view>
					</view>
					<!-- <view class="tag-box w-100 flex f-w-w">
						<view class="item all-center color-2567F3 f-s-24">
							发布位置
						</view>
						<view class="item all-center color-2567F3 f-s-24">
							重量
						</view>
					</view> -->
					<view class="form-box w-100 j-c-b a-i-c flex">
						<view class="title color-999 f-s-22">
							起始地
						</view>
						<view class="f-s-26 color-333 f-w-b" style="flex: 1;">
							{{item.first_address_desc||""}}
						</view>
					</view>
					<view class="form-box w-100 j-c-b a-i-c flex">
						<view class="title color-999 f-s-22">
							目的地
						</view>
						<view class="f-s-26 color-333 f-w-b" style="flex: 1;">
							{{item.last_address_desc||""}}
						</view>
					</view>
					<view class="form-box w-100 j-c-b a-i-c flex">
						<view class="title color-999 f-s-22">
							重量
						</view>
						<view class="f-s-26 color-333 f-w-b" style="flex: 1;">
							{{item.weight||0}}
						</view>
					</view>
					<view class="form-box w-100 j-c-b a-i-c flex">
						<view class="title color-999 f-s-22">
							出发时间
						</view>
						<view class="f-s-26 color-333 f-w-b" style="flex: 1;">
							{{item.send_time||""}}
						</view>
					</view>
					<view class="form-box w-100 j-c-b a-i-c flex">
						<view class="title color-999 f-s-22">
							称呼
						</view>
						<view class="f-s-26 color-333 f-w-b" style="flex: 1;">
							{{item.name}}
						</view>
					</view>
				</view>
				<!-- <view class="goods-info-box">
					<view class="form-box w-100 j-c-b flex">
						<view class="title color-999 f-s-22">
							货物详情
						</view>
						<view class="f-s-26 color-333 f-w-b l-h-36" style="flex: 1;">
							货物详情货物详情货物详情货物详情货物详情货物详情货物详情货物详情货物详情货物详情货物详情货物详情货物详情货物详情货物详情货物详情货物详情货物详情货物详情货物详情货物详情货物详情货物详情货物详情
						</view>
					</view>
				</view> -->
				<!-- <view class="goods-info-box">
					<view class="form-box w-100 j-c-b a-i-c flex" style="margin: 0;">
						<view class="title color-999 f-s-22">
							备注
						</view>
						<view class="f-s-26 color-333 f-w-b l-h-36" style="flex: 1;">
							备注
						</view>
					</view>
				</view> -->
			</view>
			<view class="image">
				<block v-for="(itm, index) in item.images" :key="index">
					<image class="imagea" :src="itm" mode="widthFix"></image>
				</block>
			</view>
			<view class="bottombtn-box flex a-i-c j-c-a" @click="$callPhone(item.mobile)">
				<view class="service-btn all-center color-fff f-s-30 f-w-b w-100">
					<image class="icon" src="@/static/images/white-phone-icon.svg" mode=""></image>
					联系客户
					<view class="bottomflur">
						
					</view>
				</view>
			</view>
			<view class="botton-line">
				
			</view>
		</view>
	</public-view>
</template>

<script>
	export default {
		data() {
			return {
				car_id:"",
				item:{images:[""]}
			};
		},
		onLoad(o) {
			this.car_id = o.id
			this.getCarInfo()
		},
		methods:{
			getCarInfo(){
				let that = this
				that.util.getRequest({
					url:"v1/content/transport_edit",
					data:{
						id:that.car_id
					}
				}).then(res=>{
					console.log(res)
					that.item = res.data
				}).catch(e=>{
					uni.showToast({
						title:"参数错误",
						icon:"none"
					})
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.service-btn{
		background: linear-gradient(180deg, #0E98E8 0%, #2466F2 100%);
		border-radius: 128upx;
		position: relative;
		width: 702upx;
		height: 96upx;
		.icon{
			width: 46upx;
			height: 44upx;
			margin-right: 18upx;
		}
		.bottomflur{
			background: #2567F3;
			filter: blur(24px);
			border-radius: 108px;
			width: 178upx;
			height: 28upx;
			bottom: 0;
			position: absolute;
		}
	}
	.bottombtn-box{
		position: fixed;
		bottom: 0;
		height: 160upx;
		width: 750upx;
		left: 0;
		background: #FFFFFF;
		.item-phone{
			
		}
	}
	.botton-line{
		height: 200upx;
	}
	.image{
		width: 100%;
		padding: 20upx;
		background-color: #FFFFFF;
		.imagea{
			width: 100%;
			height: 100%;
			background-color: #EEEEEE;
		}
	}
	.form-box{
		margin-bottom: 30upx;
		.title{
			width: 90upx;
			margin-right: 30upx;
		}
	}
	.tag-box{
		margin-bottom: 30upx;
		.item{
			border: 1upx solid #2567F3;
			border-radius: 4upx;
			line-height: 34upx;
			padding: 4upx 14upx;
			margin-right: 22upx;
		}
	}
	.goods-info-box{
		width: 100%;
		background: #FFFFFF;
		border-radius: 24upx;
		padding: 22upx 30upx;
		margin-bottom: 24upx;
		.name-money-box{
			margin-bottom: 24upx;
			.money{
				color: #FF3158;
			}
			.name{
				line-height: 48upx;
			}
		}
	}
	.info-box{
		width: 100%;
		padding: 0 24upx;
	}
	.goods-image{
		width: 750upx;
		height: 662upx;
	}
	.content{
		width: 750upx;
	}
</style>
